package com.ys.entity.sys;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="lili_admin.`sys_role_button`", catalog="id")
public class SysRoleButton extends BaseEntity<SysRoleButton> {

	private Long id; // 主键ID
	private Long roleId; // 角色ID
	private Long buttonId; // 按钮ID
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public SysRoleButton setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getRoleId() {
		return roleId;
	}
	public SysRoleButton setRoleId(Long roleId) {
		this.roleId = roleId;
		return this;
	}
	public Long getButtonId() {
		return buttonId;
	}
	public SysRoleButton setButtonId(Long buttonId) {
		this.buttonId = buttonId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public SysRoleButton setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public SysRoleButton setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public SysRoleButton setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static SysRoleButton sysRoleButton(
		Long roleId,
		Long buttonId,
		Integer status
			) {
		SysRoleButton entity = new SysRoleButton();
		entity.setRoleId(roleId);
		entity.setButtonId(buttonId);
		entity.setStatus(status);
		return entity;
	}
}